.indicator-analysis {
  height: 100%;
  display: flex;
  flex-direction: column;
}


.analysis-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}

.analysis-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  height: 100%;
}

.analysis-item {
  background: rgba(0, 36, 77, 0.5);
  border: 1px solid rgba(0, 180, 255, 0.2);
  border-radius: 4px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.3s ease;
}

.analysis-item.alert {
  background: rgba(245, 34, 45, 0.05);
  border-color: rgba(245, 34, 45, 0.3);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(245, 34, 45, 0.2);
  }

  70% {
    box-shadow: 0 0 0 6px rgba(245, 34, 45, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(245, 34, 45, 0);
  }
}

.indicator-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.indicator-name {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}

.indicator-value {
  font-size: 20px;
  font-weight: 500;
  color: #fff;
}

.indicator-trend {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
}

.indicator-trend.up {
  color: #52c41a;
}

.indicator-trend.down {
  color: #f5222d;
}

.indicator-chart {
  height: 40px;
  margin: 0 -12px -12px -12px;
}

.analysis-details {
  flex: 1;
  background: rgba(0, 36, 77, 0.5);
  border: 1px solid rgba(0, 180, 255, 0.2);
  border-radius: 4px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.detail-title {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}

.detail-period {
  display: flex;
  gap: 8px;
}

.period-btn {
  background: rgba(0, 24, 51, 0.7);
  border: 1px solid rgba(0, 180, 255, 0.2);
  border-radius: 2px;
  color: rgba(255, 255, 255, 0.65);
  padding: 4px 12px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.period-btn:hover {
  border-color: rgba(0, 180, 255, 0.4);
  color: rgba(255, 255, 255, 0.85);
}

.period-btn.active {
  background: rgba(0, 180, 255, 0.1);
  border-color: rgba(0, 180, 255, 0.4);
  color: #fff;
}

.detail-content {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

.detail-table {
  width: 100%;
  border-collapse: collapse;
}

.detail-table th,
.detail-table td {
  padding: 8px;
  text-align: right;
  font-size: 12px;
  border-bottom: 1px solid rgba(0, 180, 255, 0.1);
}

.detail-table th {
  color: rgba(255, 255, 255, 0.45);
  font-weight: normal;
}

.detail-table td {
  color: rgba(255, 255, 255, 0.85);
}

.detail-table td:first-child,
.detail-table th:first-child {
  text-align: left;
}

.detail-table td.alert {
  color: #f5222d;
  background: rgba(245, 34, 45, 0.1);
}

.charts-container {
  display: flex;
  align-items: center;
  gap: 10px;
  /* height: 160px; */
  height: 100%;
}

.chart-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.chart {
  width: 100%;
  flex: 1;
  height: 100%;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tool-container {
  display: flex;
  align-items: center;
  gap: 20px;
}

.tool-container {
  .ant-select-selection-placeholder,
  .ant-select-arrow,
  .anticon,
  .ant-select-selection-item-content,
  .ant-picker-input input{
    color: #000 !important;
    font-size: 17px !important;
    font-weight: bold;
  }

  /* 日期placeholder */
  .ant-picker-input input::placeholder {
    color: #000 !important;
    font-size: 17px !important;
    font-weight: bold;
  }
}

.analysis-button {
  background: #7CEC6F;
  border: none;
  border-radius: 4px;
  font-size: 18px;
  color: #000;
  height: 34px;
  cursor: pointer;
  transition: all 0.3s ease;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}